<?php
/***************************************************************************
 *   copyright : (C) 2009 Udrea Cristian
 *   site : http://code.google.com/p/testauction-php
 ***************************************************************************/

/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as 
 *   published by the Free Software Foundation; either version 2 of the
 *   License, or (at your option) any later version. Although none of the
 *   code may be sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('APP_ROOT', '../../');
//###############################################
include(APP_ROOT.'include/session.php');
if(!$session->logged_in && !$session->isAdmin()) {
	$session->logout();
	header('Location: ../index.php');
}

$view = (isset($_GET['view']) && $_GET['view'] != '') ? $_GET['view'] : '';

switch ($view) {
	case 'list' :
		$content 	= 'list.php';		
		$pageTitle  = 'Pagina De Administrare - Afisare Livrari';
		break;

	case 'detail' :
		$content 	= 'detail.php';		
		$pageTitle  = 'Pagina De Administrare - Detalii Livrari';
		break;

	case 'modify' :
		modifyStatus();
		//$content 	= 'modify.php';		
		//$pageTitle 	= 'Pagina De Administrare - Modificare Livrari';
		break;

	default :
		$content 	= 'list.php';		
		$pageTitle 	= 'Pagina De Administrare - Afisare Livrari';
}




$script = array('order.js');

require_once '../include/template.php';
?>
